.class public Les/qf;
.super Les/nf;
.source "SameFileGroupFilter.java"


# static fields
.field private static final n:Ljava/lang/String; = "qf"


# instance fields
.field private final e:Ljava/lang/ThreadLocal;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ThreadLocal<",
            "Les/ig$b;",
            ">;"
        }
    .end annotation
.end field

.field private final f:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/Long;",
            "Ljava/util/concurrent/ConcurrentLinkedQueue<",
            "Les/ig;",
            ">;>;"
        }
    .end annotation
.end field

.field private final g:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/Long;",
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Les/ig;",
            ">;>;>;"
        }
    .end annotation
.end field

.field private final h:Les/jf;

.field private volatile i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/ig;",
            ">;"
        }
    .end annotation
.end field

.field private j:I

.field private k:J

.field private l:I

.field private volatile m:Z


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(I)V
    .locals 1

    .line 1
    invoke-direct {p0}, Les/nf;-><init>()V

    .line 2
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    .line 3
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v0, p0, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    .line 4
    new-instance v0, Les/jf;

    invoke-direct {v0, p1}, Les/jf;-><init>(I)V

    iput-object v0, p0, Les/qf;->h:Les/jf;

    .line 5
    invoke-static {}, Les/ig;->l()Ljava/lang/ThreadLocal;

    move-result-object p1

    iput-object p1, p0, Les/qf;->e:Ljava/lang/ThreadLocal;

    const/4 p1, -0x1

    .line 6
    iput p1, p0, Les/qf;->l:I

    const/4 p1, 0x0

    .line 7
    iput-boolean p1, p0, Les/qf;->m:Z

    .line 8
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    iput-object p1, p0, Les/qf;->i:Ljava/util/List;

    return-void
.end method

.method private b(Les/hg;)V
    .locals 5

    .line 19
    invoke-virtual {p0, p1}, Les/qf;->a(Les/hg;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 20
    check-cast p1, Les/bg;

    .line 21
    invoke-virtual {p1}, Les/hg;->c()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    .line 22
    iget-object v2, p0, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    const/4 v3, 0x1

    if-nez v2, :cond_2

    .line 23
    new-instance v2, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    .line 24
    iget-object v4, p0, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v4, v1, v2}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/concurrent/ConcurrentLinkedQueue;

    if-eqz v1, :cond_1

    move-object v2, v1

    const/4 v0, 0x1

    :cond_1
    move v3, v0

    .line 25
    :cond_2
    new-instance v0, Les/ig;

    invoke-direct {v0, p1}, Les/ig;-><init>(Les/bg;)V

    if-eqz v3, :cond_5

    .line 26
    invoke-virtual {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/ig;

    .line 27
    invoke-virtual {v1, v0}, Les/hg;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 28
    invoke-virtual {v1}, Les/ig;->k()V

    return-void

    .line 29
    :cond_4
    iget-object p1, p0, Les/qf;->e:Ljava/lang/ThreadLocal;

    invoke-virtual {p1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ig$b;

    iget-object p1, p1, Les/ig$b;->a:[B

    invoke-virtual {v0, p1}, Les/ig;->a([B)Ljava/lang/String;

    .line 30
    invoke-virtual {v2}, Ljava/util/concurrent/ConcurrentLinkedQueue;->peek()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Les/ig;

    if-eqz p1, :cond_5

    .line 31
    invoke-virtual {p1}, Les/ig;->i()Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_5

    .line 32
    iget-object v1, p0, Les/qf;->e:Ljava/lang/ThreadLocal;

    invoke-virtual {v1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/ig$b;

    iget-object v1, v1, Les/ig$b;->b:[B

    invoke-virtual {p1, v1}, Les/ig;->a([B)Ljava/lang/String;

    .line 33
    :cond_5
    invoke-virtual {v0}, Les/ig;->k()V

    .line 34
    invoke-virtual {v2, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method private f()V
    .locals 11

    .line 1
    iget-object v0, p0, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const-wide/16 v1, 0x0

    move-wide v3, v1

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_4

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map$Entry;

    .line 2
    invoke-interface {v5}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/Long;

    .line 3
    invoke-interface {v5}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/Map;

    .line 4
    invoke-interface {v5}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_1
    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/Map$Entry;

    .line 5
    invoke-interface {v7}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/List;

    .line 6
    invoke-interface {v7}, Ljava/util/List;->isEmpty()Z

    move-result v8

    if-eqz v8, :cond_2

    goto :goto_0

    .line 7
    :cond_2
    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v8

    int-to-long v8, v8

    cmp-long v10, v8, v1

    if-lez v10, :cond_3

    .line 8
    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    .line 9
    iput-object v7, p0, Les/qf;->i:Ljava/util/List;

    move-wide v1, v8

    goto :goto_0

    :cond_3
    cmp-long v10, v8, v1

    if-nez v10, :cond_1

    .line 10
    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v8

    cmp-long v10, v8, v3

    if-lez v10, :cond_1

    .line 11
    invoke-virtual {v6}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    .line 12
    iput-object v7, p0, Les/qf;->i:Ljava/util/List;

    goto :goto_0

    :cond_4
    return-void
.end method


# virtual methods
.method public final declared-synchronized a(I)Les/nf$b;
    .locals 4

    monitor-enter p0

    .line 5
    :try_start_0
    iget v0, p0, Les/qf;->j:I

    if-le p1, v0, :cond_0

    .line 6
    iget p1, p0, Les/qf;->j:I

    :cond_0
    const/4 v0, 0x1

    if-le p1, v0, :cond_2

    .line 7
    iget-object v1, p0, Les/qf;->i:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-gt v1, v0, :cond_1

    goto :goto_0

    .line 8
    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(I)V

    .line 9
    iget-object p1, p0, Les/qf;->i:Ljava/util/List;

    const/4 v2, 0x0

    invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 10
    iget-object p1, p0, Les/qf;->i:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 11
    new-instance p1, Les/nf$b;

    iget v0, p0, Les/qf;->j:I

    iget-wide v2, p0, Les/qf;->k:J

    invoke-direct {p1, v1, v0, v2, v3}, Les/nf$b;-><init>(Ljava/util/List;IJ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    .line 12
    :cond_2
    :goto_0
    :try_start_1
    new-instance p1, Les/nf$b;

    invoke-direct {p1}, Les/nf$b;-><init>()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a()V
    .locals 20

    move-object/from16 v1, p0

    monitor-enter p0

    .line 13
    :try_start_0
    invoke-super/range {p0 .. p0}, Les/nf;->a()V

    const/4 v0, 0x0

    .line 14
    iput v0, v1, Les/qf;->j:I

    const-wide/16 v2, 0x0

    .line 15
    iput-wide v2, v1, Les/qf;->k:J

    .line 16
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 17
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 18
    iget-object v5, v1, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v5}, Ljava/util/concurrent/ConcurrentHashMap;->entrySet()Ljava/util/Set;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v5

    move-wide v6, v2

    move-wide v8, v6

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v10

    if-eqz v10, :cond_c

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/util/Map$Entry;

    .line 19
    invoke-interface {v10}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/util/concurrent/ConcurrentLinkedQueue;

    .line 20
    invoke-virtual {v11}, Ljava/util/concurrent/ConcurrentLinkedQueue;->size()I

    move-result v12

    const/4 v13, 0x1

    if-ne v12, v13, :cond_0

    goto :goto_0

    .line 21
    :cond_0
    invoke-interface {v10}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/Long;

    .line 22
    iget-object v12, v1, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v12, v10}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Ljava/util/concurrent/ConcurrentHashMap;

    if-nez v12, :cond_1

    .line 23
    new-instance v12, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v12}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    .line 24
    iget-object v14, v1, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v14, v10, v12}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 25
    :cond_1
    invoke-virtual {v11}, Ljava/util/concurrent/ConcurrentLinkedQueue;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_2
    :goto_1
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v14

    if-eqz v14, :cond_9

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Les/ig;

    .line 26
    invoke-virtual {v14}, Les/ig;->h()J

    move-result-wide v15

    cmp-long v17, v15, v2

    if-nez v17, :cond_3

    .line 27
    invoke-interface {v0, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 28
    :cond_3
    invoke-virtual {v14}, Les/ig;->j()Z

    move-result v15

    if-nez v15, :cond_4

    .line 29
    invoke-virtual {v14}, Les/ig;->h()J

    move-result-wide v14

    invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v14

    invoke-interface {v4, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 30
    :cond_4
    :goto_2
    invoke-virtual {v14}, Les/ig;->i()Ljava/lang/String;

    move-result-object v15

    if-nez v15, :cond_5

    .line 31
    iget-object v15, v1, Les/qf;->e:Ljava/lang/ThreadLocal;

    invoke-virtual {v15}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v15

    check-cast v15, Les/ig$b;

    iget-object v15, v15, Les/ig$b;->a:[B

    invoke-virtual {v14, v15}, Les/ig;->a([B)Ljava/lang/String;

    move-result-object v15

    if-nez v15, :cond_5

    .line 32
    invoke-virtual {v14}, Les/ig;->h()J

    move-result-wide v15

    cmp-long v17, v15, v2

    if-nez v17, :cond_2

    .line 33
    invoke-interface {v0, v14}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_1

    .line 34
    :cond_5
    invoke-virtual {v12, v15}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v16

    check-cast v16, Ljava/util/List;

    if-nez v16, :cond_6

    .line 35
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 36
    invoke-virtual {v12, v15, v2}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_3

    :cond_6
    move-object/from16 v2, v16

    .line 37
    :goto_3
    invoke-interface {v2, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 38
    iget v3, v1, Les/qf;->j:I

    add-int/2addr v3, v13

    iput v3, v1, Les/qf;->j:I

    move-object v15, v4

    .line 39
    iget-wide v3, v1, Les/qf;->k:J

    invoke-virtual {v14}, Les/hg;->c()J

    move-result-wide v18

    add-long v3, v3, v18

    iput-wide v3, v1, Les/qf;->k:J

    .line 40
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    int-to-long v3, v3

    cmp-long v14, v3, v6

    if-lez v14, :cond_7

    .line 41
    invoke-virtual {v10}, Ljava/lang/Long;->longValue()J

    move-result-wide v8

    .line 42
    iput-object v2, v1, Les/qf;->i:Ljava/util/List;

    move-wide v6, v3

    goto :goto_4

    :cond_7
    cmp-long v14, v3, v6

    if-nez v14, :cond_8

    .line 43
    invoke-virtual {v10}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    cmp-long v14, v3, v8

    if-lez v14, :cond_8

    .line 44
    invoke-virtual {v10}, Ljava/lang/Long;->longValue()J

    move-result-wide v8

    .line 45
    iput-object v2, v1, Les/qf;->i:Ljava/util/List;

    :cond_8
    :goto_4
    move-object v4, v15

    const-wide/16 v2, 0x0

    goto/16 :goto_1

    :cond_9
    move-object v15, v4

    .line 46
    invoke-virtual {v12}, Ljava/util/concurrent/ConcurrentHashMap;->entrySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_a
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_b

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map$Entry;

    .line 47
    invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/List;

    .line 48
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v10

    const/4 v11, 0x2

    if-ge v10, v11, :cond_a

    .line 49
    invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v12, v3}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 50
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_5
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_a

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/ig;

    .line 51
    iget v10, v1, Les/qf;->j:I

    sub-int/2addr v10, v13

    iput v10, v1, Les/qf;->j:I

    .line 52
    iget-wide v10, v1, Les/qf;->k:J

    invoke-virtual {v4}, Les/hg;->c()J

    move-result-wide v18

    sub-long v10, v10, v18

    iput-wide v10, v1, Les/qf;->k:J

    goto :goto_5

    :cond_b
    move-object v4, v15

    const-wide/16 v2, 0x0

    goto/16 :goto_0

    :cond_c
    move-object v15, v4

    .line 53
    iget-object v2, v1, Les/qf;->h:Les/jf;

    invoke-virtual {v2}, Les/jf;->b()V

    .line 54
    iget-object v2, v1, Les/qf;->h:Les/jf;

    invoke-virtual {v2, v0}, Les/jf;->b(Ljava/util/List;)V

    .line 55
    iget-object v0, v1, Les/qf;->h:Les/jf;

    move-object v2, v15

    invoke-virtual {v0, v2}, Les/jf;->a(Ljava/util/List;)V

    .line 56
    iget-object v0, v1, Les/qf;->h:Les/jf;

    invoke-virtual {v0}, Les/jf;->a()V

    .line 57
    iget-object v0, v1, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentHashMap;->clear()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 58
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    goto :goto_7

    :goto_6
    throw v0

    :goto_7
    goto :goto_6
.end method

.method public a(Les/we;)V
    .locals 4

    .line 1
    invoke-virtual {p1}, Les/we;->a()[Les/bg;

    move-result-object p1

    array-length v0, p1

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    aget-object v2, p1, v1

    .line 2
    iget-boolean v3, p0, Les/qf;->m:Z

    if-eqz v3, :cond_0

    goto :goto_1

    .line 3
    :cond_0
    invoke-direct {p0, v2}, Les/qf;->b(Les/hg;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    return-void
.end method

.method protected a(Les/hg;)Z
    .locals 5

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 4
    :cond_0
    invoke-virtual {p1}, Les/hg;->c()J

    move-result-wide v1

    const-wide/16 v3, 0x0

    cmp-long p1, v1, v3

    if-nez p1, :cond_1

    return v0

    :cond_1
    const/4 p1, 0x1

    return p1
.end method

.method public declared-synchronized a(Ljava/util/List;)Z
    .locals 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)Z"
        }
    .end annotation

    monitor-enter p0

    .line 59
    :try_start_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 60
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const/4 v4, 0x1

    if-eqz v3, :cond_a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/hg;

    .line 61
    invoke-virtual {v3}, Les/hg;->c()J

    move-result-wide v5

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    .line 62
    iget-object v6, p0, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v6, v5}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/concurrent/ConcurrentHashMap;

    if-nez v6, :cond_1

    goto :goto_0

    .line 63
    :cond_1
    invoke-virtual {v6}, Ljava/util/concurrent/ConcurrentHashMap;->keySet()Ljava/util/Set;

    move-result-object v7

    invoke-interface {v7}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_2
    :goto_1
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_8

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    .line 64
    invoke-virtual {v6, v8}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/util/List;

    const/4 v10, 0x0

    .line 65
    iget-object v11, p0, Les/qf;->i:Ljava/util/List;

    if-ne v11, v9, :cond_3

    const/4 v2, 0x1

    .line 66
    :cond_3
    invoke-interface {v9}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v11

    :cond_4
    invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z

    move-result v12

    if-eqz v12, :cond_5

    invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Les/ig;

    .line 67
    invoke-virtual {v12, v3}, Les/hg;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_4

    move-object v10, v12

    :cond_5
    if-eqz v10, :cond_2

    .line 68
    invoke-interface {v9, v10}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_6

    .line 69
    invoke-virtual {v10}, Les/ig;->h()J

    move-result-wide v11

    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    invoke-interface {v0, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 70
    :cond_6
    invoke-interface {v9}, Ljava/util/List;->isEmpty()Z

    move-result v9

    if-eqz v9, :cond_7

    .line 71
    invoke-virtual {v6, v8}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 72
    :cond_7
    iget v8, p0, Les/qf;->j:I

    sub-int/2addr v8, v4

    iput v8, p0, Les/qf;->j:I

    .line 73
    iget-wide v8, p0, Les/qf;->k:J

    invoke-virtual {v10}, Les/hg;->c()J

    move-result-wide v10

    sub-long/2addr v8, v10

    iput-wide v8, p0, Les/qf;->k:J

    goto :goto_1

    .line 74
    :cond_8
    invoke-virtual {v6}, Ljava/util/concurrent/ConcurrentHashMap;->size()I

    move-result v3

    if-ne v3, v4, :cond_0

    .line 75
    invoke-virtual {v6}, Ljava/util/concurrent/ConcurrentHashMap;->keySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_9
    :goto_2
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    .line 76
    invoke-virtual {v6, v7}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/util/List;

    .line 77
    invoke-interface {v8}, Ljava/util/List;->size()I

    move-result v9

    if-ne v9, v4, :cond_9

    .line 78
    invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Les/ig;

    invoke-virtual {v9}, Les/ig;->h()J

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v9

    invoke-interface {v0, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 79
    invoke-virtual {v6, v7}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 80
    iget-object v7, p0, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v7, v5}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 81
    iget v7, p0, Les/qf;->j:I

    sub-int/2addr v7, v4

    iput v7, p0, Les/qf;->j:I

    .line 82
    iget-wide v9, p0, Les/qf;->k:J

    invoke-interface {v8, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/ig;

    invoke-virtual {v7}, Les/hg;->c()J

    move-result-wide v7

    sub-long/2addr v9, v7

    iput-wide v9, p0, Les/qf;->k:J

    goto :goto_2

    :cond_a
    if-eqz v2, :cond_b

    .line 83
    invoke-direct {p0}, Les/qf;->f()V

    .line 84
    :cond_b
    iget-object p1, p0, Les/qf;->h:Les/jf;

    invoke-virtual {p1}, Les/jf;->b()V

    .line 85
    iget-object p1, p0, Les/qf;->h:Les/jf;

    invoke-virtual {p1, v0}, Les/jf;->a(Ljava/util/List;)V

    .line 86
    iget-object p1, p0, Les/qf;->h:Les/jf;

    invoke-virtual {p1}, Les/jf;->a()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 87
    monitor-exit p0

    return v4

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method public b(I)V
    .locals 0

    .line 1
    iput p1, p0, Les/qf;->l:I

    return-void
.end method

.method public b(Ljava/util/List;)V
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 2
    sget-object v0, Les/qf;->n:Ljava/lang/String;

    const-string v1, "start SameFileGroupFilter..."

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_6

    .line 3
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto/16 :goto_4

    .line 4
    :cond_0
    iget-object v0, p0, Les/qf;->h:Les/jf;

    invoke-virtual {v0}, Les/jf;->b()V

    .line 5
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 6
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    .line 7
    iget v3, p0, Les/qf;->l:I

    const/4 v4, -0x1

    if-eq v3, v4, :cond_1

    .line 8
    iget-object v0, p0, Les/qf;->h:Les/jf;

    invoke-virtual {v0, v3}, Les/jf;->a(I)[Les/ig;

    move-result-object v0

    goto :goto_1

    .line 9
    :cond_1
    iget-object v3, p0, Les/qf;->h:Les/jf;

    invoke-virtual {v3, v0}, Les/jf;->a(Ljava/lang/String;)[Les/ig;

    move-result-object v0

    .line 10
    :goto_1
    array-length v3, v0

    const/4 v4, 0x0

    :goto_2
    if-ge v4, v3, :cond_4

    aget-object v5, v0, v4

    if-nez v5, :cond_2

    goto :goto_3

    .line 11
    :cond_2
    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    .line 12
    iget-object v7, p0, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v7, v6}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/concurrent/ConcurrentLinkedQueue;

    if-nez v7, :cond_3

    .line 13
    new-instance v7, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v7}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    .line 14
    iget-object v8, p0, Les/qf;->f:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v8, v6, v7}, Ljava/util/concurrent/ConcurrentHashMap;->putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/util/concurrent/ConcurrentLinkedQueue;

    if-eqz v6, :cond_3

    move-object v7, v6

    .line 15
    :cond_3
    invoke-virtual {v7, v5}, Ljava/util/concurrent/ConcurrentLinkedQueue;->add(Ljava/lang/Object;)Z

    :goto_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 16
    :cond_4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    .line 17
    sget-object v0, Les/qf;->n:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "load same file cache: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sub-long/2addr v3, v1

    invoke-virtual {v5, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, " ms"

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 18
    :cond_5
    iget-object p1, p0, Les/qf;->h:Les/jf;

    invoke-virtual {p1}, Les/jf;->a()V

    :cond_6
    :goto_4
    return-void
.end method

.method public final declared-synchronized d()Les/jg;
    .locals 11

    monitor-enter p0

    const/4 v0, 0x0

    const-wide/16 v1, 0x0

    .line 1
    :try_start_0
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    .line 2
    iget-object v3, p0, Les/qf;->g:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v3}, Ljava/util/concurrent/ConcurrentHashMap;->entrySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v3

    move-wide v7, v1

    const/4 v6, 0x0

    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 3
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    .line 4
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 5
    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    .line 6
    new-instance v2, Ljava/util/ArrayList;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v5

    invoke-direct {v2, v5}, Ljava/util/ArrayList;-><init>(I)V

    .line 7
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/ig;

    .line 8
    invoke-virtual {v5}, Les/bg;->a()Z

    move-result v9

    if-eqz v9, :cond_2

    add-int/lit8 v6, v6, 0x1

    .line 9
    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v9

    add-long/2addr v7, v9

    .line 10
    invoke-virtual {v5}, Les/ig;->b()Lcom/estrongs/fs/g;

    move-result-object v5

    invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 11
    :cond_3
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    .line 12
    invoke-interface {v4, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 13
    :cond_4
    new-instance v0, Les/jg;

    const/4 v5, 0x0

    move-object v3, v0

    invoke-direct/range {v3 .. v8}, Les/jg;-><init>(Ljava/util/List;IIJ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public e()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Les/qf;->m:Z

    return-void
.end method
